# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=py3-django-debug-toolbar
_pkgname=django-debug-toolbar
pkgver=4.2
pkgrel=0
pkgdesc="Configurable set of panels that display various debug information about the current request/response"
options="!check" # Requires unpackaged Selenium python3 module
url="https://github.com/jazzband/django-debug-toolbar"
arch="noarch"
license="BSD-3-Clause"
depends="py3-django py3-sqlparse"
makedepends="
	py3-gpep517
	py3-hatchling
	"
# options="!check" #no testsuite
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jazzband/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-django-debug-toolbar" # Backwards compatibility
provides="py-django-debug-toolbar=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
5731fc7a1ec5209a7bd44f2e31d6c3ebde8ff1e24265878c1773610e69f2469f595b8a9641d345dcc6169c5f131d132006456cdc9aebd89cc4ec4f15a0a25341  py3-django-debug-toolbar-4.2.tar.gz
"
